<?php
/* @var $this AdminberitaController */
/* @var $model Berita */
/* @var $form CActiveForm */
?>



<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'berita-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>
<p class="note">Fields with <span class="required">*</span> are required.</p>
	
		
		<?php echo $form->errorSummary($model); ?>
            <form>
                <div class="controls controls-row">
					<?php echo $form->labelEx($model,'title'); ?>
					<?php echo $form->textField($model,'title',array('class'=>'span12','placeholder'=>'Judul Berita','size'=>60,'maxlength'=>255)); ?>
					<?php echo $form->error($model,'title'); ?>
                    
                </div>
                <div class="controls">
                    <?php echo $form->textArea($model,'content',array('class'=>'span12','rows'=>6, 'cols'=>50)); ?>
					<?php echo $form->error($model,'content'); ?>
					
                </div>
				
				<div class="controls">
					<?php echo $form->labelEx($model,'statuspost'); ?>
					

					<?php echo $form->textField($model,'statuspost',array('size'=>1,'maxlength'=>1)); ?>
					<?php echo $form->error($model,'statuspost'); ?>
					
                </div>
				<div class="controls">
					<?php echo $form->labelEx($model,'category_idcategory'); ?>
					 <?php echo $form->dropDownList($model,'category_idcategory',CHtml::listData(CategorY::model()->findAll(),'idcategory','name'),array('prompt'=>'=Tentang=','class'=>'span5',)); ?>
						
					
					<?php echo $form->error($model,'category_idcategory'); ?>
								
                </div>
				
                  
                <div class="controls">
                    <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
                </div>
            </form>
        
	

<?php $this->endWidget(); ?>

<!-- form -->